import yaml
import logging


def read_yaml_data(yaml_path) -> list:

    with open(yaml_path, 'r', encoding="utf-8") as f:
        file_data = f.read()
        data = yaml.full_load(file_data)
        logging.debug(data)
        logging.info("Read [{}] finished-------".format(yaml_path))
        return data